{{include template('header','member')}}
<style>
    .right{width: 100%;}
</style>
<script type="text/javascript" src="{{STATIC_URL}}/plugins/address.js"></script>
<div class="w980 main">
    {{include template('left','member')}}
    <div class="main_right">
        <div class="tit"><h3>订单管理</h3></div>
        <div class="main_cont">
            <table id='OrderList' class="table tablelist table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                <thead>
                    <tr>
                        <th>{{L('order_order_sn')}}</th>
                        <th>{{L('order_money')}}</th>
                        <th>{{L('order_addtime')}}</th>
                        <th>{{L('order_paytype')}}</th>
                        <th>{{L('order_paytime')}}</th>
                        <th>{{L('order_status')}}</th>
                        <th>{{L('edit')}}</th>
                    </tr>
                </thead>
                <tbody>
                    {{foreach $items as $item}}
                    <tr>

                        <td >{{$item.order_sn}}</td>
                        <td >{{$item.money}}</td>
                        <td>{{date("Y-m-d H:i:s",$item.addtime)}}</td>
                        <td>{{$item.paytype}}</td>
                        <td>{{$item.paytime}}</td>
                        <td>{{$item.status}}</td>
                        <td style="width: 15%">
                            {{if $item.status eq 0}}
                            <a href="/member/spacecp/order_pay" class="btn btn-warning btn-xs" >付款</a>
                            {{/if}}
                        </td>
                    </tr>
                    {{/foreach}}
                </tbody>
                <tr>
                    <td colspan="15">
                        <div style="text-align: left;">
                            {{include template('public/page','admin')}}
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>

{{include template('footer','member')}}
